/*
 * ACLRole.java
 *
 * Created on 17 czerwiec 2007, 18:30
 *
 */

package arocms.security;

import java.io.Serializable;

/**
 *
 * @author arek
 */
public class ACLRole implements Role, Serializable{
    
    private String roleName="";
    
    /** Creates a new instance of ACLRole */
    public ACLRole(String roleName) {
        this.roleName = roleName;
    }
    
    public String getRoleName() {
        return roleName;
    }
    
    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
    
    public int hashCode() {
        return roleName.hashCode();
    }
    
    public boolean equals(Object object) {
        ACLRole r = (ACLRole) object;
        boolean retValue = r.equals(roleName);
        return retValue;
    }

    public String toString() {
        return getRoleName();
    }
    
    
}
